package cn.kgc.ffzw.fuxi;

public class Teacher {

    private String name;
    private Integer age;
    private Integer teachAge;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getTeachAge() {
        return teachAge;
    }

    public void setTeachAge(Integer teachAge) {
        this.teachAge = teachAge;
    }

    public  void teach(){
        System.out.println(this.name+"是一名老师，今年"+this.age+"岁，教了"+this.teachAge+"年书");
    }
}
